package Controller;

import java.io.FileInputStream;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.advanced.AdvancedPlayer;

public class Mp3HighLevelController {

	public void playFile(String fileName) {
		FileInputStream mySong;
		AdvancedPlayer player;
		try {
			mySong = new FileInputStream(new File(fileName));
			player = new AdvancedPlayer(mySong);
			player.play();
		} catch (JavaLayerException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
